export interface RouteItem {
  menuname: Array<string>
  asdefault?: boolean // 默认显示
  path?: string
  type?: boolean
  component?: string | (() => any)
  isTabMenu?: boolean
  tabTitle?: string
}

export type RoutesConfig = RouteItem[]
const config: RoutesConfig = [
  // 仓储管理
  {
    menuname: ['资产管理', '仓储管理', '仓储档案'],
    asdefault: true,
    path: '/storage/archives',
    component: '../pages/storage/archives/index.tsx',
  },
  {
    menuname: ['资产管理', '仓储管理', '仓储档案'],
    path: '/storage/archives/add',
    tabTitle: '仓储档案新增',
    asdefault: true,
    component: '../pages/storage/archives/child/add/index.tsx',
    type: true,
  },
  {
    menuname: ['资产管理', '仓储管理', '仓储档案'],
    path: '/storage/archives/edit',
    tabTitle: '仓储档案编辑',
    asdefault: true,
    component: '../pages/storage/archives/child/add/index.tsx',
    type: true,
  },
  {
    menuname: ['资产管理', '仓储管理', '仓储档案'],
    path: '/storage/archives/view',
    tabTitle: '仓储档案详情',
    asdefault: true,
    component: '../pages/storage/archives/child/add/index.tsx',
    type: true,
  },
  {
    menuname: ['资产管理', '仓储管理', '入库管理'],
    asdefault: true,
    path: '/storage/warehousing',
    component: '../pages/storage/warehousing/index.tsx',
  },
  {
    menuname: ['资产管理', '仓储管理', '入库管理'],
    path: '/storage/warehousing/add',
    tabTitle: '入库单创建',
    asdefault: true,
    component: '../pages/storage/warehousing/child/add/index.tsx',
    type: true,
  },
  {
    menuname: ['资产管理', '仓储管理', '入库管理'],
    path: '/storage/warehousing/edit',
    tabTitle: '入库单编辑',
    asdefault: true,
    component: '../pages/storage/warehousing/child/edit/index.tsx',
    type: true,
  },
  {
    menuname: ['资产管理', '仓储管理', '入库管理'],
    path: '/storage/warehousing/view',
    tabTitle: '入库单详情',
    asdefault: true,
    component: '../pages/storage/warehousing/child/edit/index.tsx',
    type: true,
  },
  // 出库管理
  {
    menuname: ['资产管理', '仓储管理', '出库管理'],
    asdefault: true,
    path: '/storage/outDepot',
    component: '../pages/storage/outDepot/index.tsx',
  },
  {
    menuname: ['资产管理', '仓储管理', '出库管理'],
    path: '/storage/outDepot/add',
    tabTitle: '出库单创建',
    asdefault: true,
    component: '../pages/storage/outDepot/child/add/index.tsx',
    type: true,
  },
  {
    menuname: ['资产管理', '仓储管理', '出库管理'],
    path: '/storage/outDepot/edit',
    tabTitle: '出库单编辑',
    asdefault: true,
    component: '../pages/storage/outDepot/child/edit/index.tsx',
    type: true,
  },
  {
    menuname: ['资产管理', '仓储管理', '出库管理'],
    path: '/storage/outDepot/view',
    tabTitle: '出库单详情',
    asdefault: true,
    component: '../pages/storage/outDepot/child/edit/index.tsx',
    type: true,
  },
  // 调拨管理
  {
    menuname: ['资产管理', '仓储管理', '调拨管理'],
    asdefault: true,
    path: '/storage/allocation',
    component: '../pages/storage/allocation/index.tsx',
  },
  {
    menuname: ['资产管理', '仓储管理', '调拨管理'],
    path: '/storage/allocation/add',
    tabTitle: '调拨发起',
    asdefault: true,
    component: '../pages/storage/allocation/child/add/index.tsx',
    type: true,
  },
  {
    menuname: ['资产管理', '仓储管理', '调拨管理'],
    path: '/storage/allocation/edit',
    tabTitle: '填写费用项',
    asdefault: true,
    component: '../pages/storage/allocation/child/edit/index.tsx',
    type: true,
  },
  {
    menuname: ['资产管理', '仓储管理', '调拨管理'],
    path: '/storage/allocation/view',
    tabTitle: '调拨详情',
    asdefault: true,
    component: '../pages/storage/allocation/child/edit/index.tsx',
    type: true,
  },
  // 资产盘点-盘点表管理
  {
    menuname: ['资产管理', '仓储管理', '资产盘点', '盘点表管理'],
    path: '/storage/assetInventory/inventoryPlan',
    asdefault: true,
    component: '../pages/storage/assetInventory/inventoryPlan/index.tsx',
  },
  {
    menuname: ['资产管理', '仓储管理', '资产盘点', '盘点表新增'],
    path: '/storage/assetInventory/inventoryPlan/add',
    tabTitle: '盘点表新增',
    asdefault: true,
    type: true,
    component: '../pages/storage/assetInventory/inventoryPlan/child/add/index.tsx',
  },
  {
    menuname: ['资产管理', '仓储管理', '资产盘点', '盘点表编辑'],
    path: '/storage/assetInventory/inventoryPlan/edit',
    tabTitle: '盘点表编辑',
    asdefault: true,
    type: true,
    component: '../pages/storage/assetInventory/inventoryPlan/child/add/index.tsx',

  },
  {
    menuname: ['资产管理', '仓储管理', '资产盘点', '盘点表详情'],
    path: '/storage/assetInventory/inventoryPlan/view',
    tabTitle: '盘点表详情',
    asdefault: true,
    type: true,
    component: '../pages/storage/assetInventory/inventoryPlan/child/add/index.tsx',

  },
  // 资产盘点-盘点计划
  {
    menuname: ['资产管理', '仓储管理', '资产盘点', '资产盘点计划'],
    path: '/storage/assetInventory/assetInventoryPlan',
    asdefault: true,
    component: '../pages/storage/assetInventory/assetInventoryPlan/index.tsx',
  },
  {
    menuname: ['资产管理', '仓储管理', '资产盘点', '资产盘点计划'],
    path: '/storage/assetInventory/assetInventoryPlan/add',
    tabTitle: '新建资产盘点计划',
    asdefault: true,
    type: true,
    component:
      '../pages/storage/assetInventory/assetInventoryPlan/child/add/index.tsx',
  },
  {
    menuname: ['资产管理', '仓储管理', '资产盘点', '资产盘点计划'],
    path: '/storage/assetInventory/assetInventoryPlan/edit',
    tabTitle: '编辑资产盘点计划',
    asdefault: true,
    type: true,
    component:
      '../pages/storage/assetInventory/assetInventoryPlan/child/add/index.tsx',
  },
  {
    menuname: ['资产管理', '仓储管理', '资产盘点', '资产盘点计划'],
    path: '/storage/assetInventory/assetInventoryPlan/view',
    tabTitle: '资产盘点计划详情',
    asdefault: true,
    type: true,
    component:
      '../pages/storage/assetInventory/assetInventoryPlan/child/add/index.tsx',
  },
  {
    menuname: ['资产管理', '仓储管理', '资产盘点', '资产盘点计划'],
    path: '/storage/assetInventory/assetInventoryPlan/process',
    tabTitle: '审核资产盘点计划',
    asdefault: true,
    type: true,
    component:
      '../pages/storage/assetInventory/assetInventoryPlan/child/add/index.tsx',
  },
  {
    menuname: ['资产管理', '仓储管理', '资产盘点', '资产盘点计划'],
    path: '/storage/assetInventory/assetInventoryPlan/taskFollowUp',
    tabTitle: '任务跟进',
    asdefault: true,
    type: true,
    component:
      '../pages/storage/assetInventory/assetInventoryPlan/child/add/index.tsx',
  },
  {
    menuname: ['资产管理', '仓储管理', '资产盘点', '资产盘点计划'],
    path: '/storage/assetInventory/assetInventoryPlan/inventoryList',
    tabTitle: '盘点清单',
    asdefault: true,
    type: true,
    component:
      '../pages/storage/assetInventory/assetInventoryPlan/child/inventoryList/index.tsx',
  },
  // 资产盘点-盘点任务
  {
    menuname: ['资产管理', '仓储管理', '资产盘点', '盘点任务'],
    path: '/storage/assetInventory/inventoryTask',
    asdefault: true,
    component: '../pages/storage/assetInventory/inventoryTask/index.tsx',
  },
  {
    menuname: ['资产管理', '仓储管理', '资产盘点', '盘点任务处理'],
    path: '/storage/assetInventory/inventoryTask/view/detail',
    tabTitle: '盘点任务处理',
    asdefault: true,
    type: true,
    component: '../pages/storage/assetInventory/inventoryTask/detailPage/index.tsx',
  },
  // 物料档案
  {
    menuname: ['资产管理', '仓储管理', '物料档案'],
    asdefault: true,
    path: '/storage/material',
    component: '../pages/storage/material/index.tsx',
  },
  {
    menuname: ['资产管理', '仓储管理', '物料档案'],
    path: '/storage/material/add',
    tabTitle: '物料档案新增',
    asdefault: true,
    component: '../pages/storage/material/child/add/index.tsx',
    type: true,
  },
  {
    menuname: ['资产管理', '仓储管理', '物料档案'],
    path: '/storage/material/edit',
    tabTitle: '物料档案编辑',
    asdefault: true,
    component: '../pages/storage/material/child/add/index.tsx',
    type: true,
  },
  {
    menuname: ['资产管理', '仓储管理', '物料档案'],
    path: '/storage/material/view',
    tabTitle: '物料档案详情',
    asdefault: true,
    component: '../pages/storage/material/child/add/index.tsx',
    type: true,
  },
  {
    menuname: ['资产管理', '仓储管理', '物料台账'],
    asdefault: true,
    path: '/storage/materialLedger',
    component: '../pages/storage/materialLedger/index.tsx',
  },
  {
    menuname: ['资产管理', '仓储管理', '停车场管理', '库位档案'],
    path: '/storage/parkingLot/warehouseLocation',
    asdefault: true,
    component: '../pages/storage/parkingLot/warehouseLocation/index.tsx',
  },
  {
    menuname: ['资产管理', '仓储管理', '停车场管理', '库位档案'],
    path: '/storage/parkingLot/warehouseLocation/edit',
    tabTitle: '库位档案编辑',
    asdefault: true,
    component:
      '../pages/storage/parkingLot/warehouseLocation/child/edit/index.tsx',
    type: true,
  },
  {
    menuname: ['资产管理', '仓储管理', '停车场管理', '库位档案'],
    path: '/storage/parkingLot/warehouseLocation/view',
    tabTitle: '库位档案详情',
    asdefault: true,
    component:
      '../pages/storage/parkingLot/warehouseLocation/child/edit/index.tsx',
    type: true,
  },
  {
    menuname: ['资产管理', '仓储管理', '停车场管理', '停车场费用结算'],
    path: '/storage/parkingLot/settlement',
    asdefault: true,
    component: '../pages/storage/parkingLot/settlement/index.tsx',
  },
  {
    menuname: ['资产管理', '仓储管理', '停车场管理', '停车场费用结算'],
    path: '/storage/parkingLot/settlement/add',
    tabTitle: '停车场费用结算新建',
    asdefault: true,
    component: '../pages/storage/parkingLot/settlement/child/add/index.tsx',
    type: true,
  },
  {
    menuname: ['资产管理', '仓储管理', '停车场管理', '停车场费用结算'],
    path: '/storage/parkingLot/settlement/edit',
    tabTitle: '停车场费用结算编辑',
    asdefault: true,
    component: '../pages/storage/parkingLot/settlement/child/add/index.tsx',
    type: true,
  },
  {
    menuname: ['资产管理', '仓储管理', '停车场管理', '停车场费用结算'],
    path: '/storage/parkingLot/settlement/examine',
    tabTitle: '停车场费用结算审核',
    asdefault: true,
    component: '../pages/storage/parkingLot/settlement/child/add/index.tsx',
    type: true,
  },
  {
    menuname: ['资产管理', '仓储管理', '停车场管理', '停车场费用结算'],
    path: '/storage/parkingLot/settlement/view',
    tabTitle: '停车场费用结算新建详情',
    asdefault: true,
    component: '../pages/storage/parkingLot/settlement/child/add/index.tsx',
    type: true,
  },
];

export default config
